﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Oragon.Architecture.Data.SqlBuilder;
using Oragon.Architecture.Data.SqlBuilder.Operators;
using Oragon.Architecture.Data.QueryBuilder.SqlServer;

namespace Oragon.Architecture.Data.QueryBuilder.Tests
{
    [TestFixture]
    public class DeleteSQLBuilderTest
    {
        [Test]
        public void DeleteSQLBuilderTest_1()
        {
            DeleteSQLBuilder target = new DeleteSQLBuilder();
			target.TableName = LiteralManager.GetLiteralBuilder().BuildTableName("Table01");
			target.WhereClause.Items.Add(
					new EqualToOperator(
						LiteralManager.GetLiteralBuilder().BuildColumnName("ID"), 
						LiteralManager.GetLiteralBuilder().BuildParameter("ID")
					)
			);
            string actual = target.ToSQL();
            Assert.AreEqual(Oragon.Architecture.Data.QueryBuilder.Tests.Properties.Resources.DeleteSQLBuilderTest_1, actual.Trim());
        }

    }
}
